export function getAge(birthday){
  let localDate = new Date().toLocaleDateString()
  let localYear = Number(localDate.split('/')[0])
  let localMonth = Number(localDate.split('/')[1])
  let localDay = Number(localDate.split('/')[2])
  let birthYear = Number(birthday.split('-')[0])
  let birthMonth = Number(birthday.split('-')[1])
  let birthDay = Number(birthday.split('-')[2])
  let age=0
  if(birthMonth>localMonth){
    age--
  }else if(birthMonth = localMonth){
    if(birthDay>localDay){
      age--
    }
  }
  age += localYear - birthYear
  if(age<0){
    age = 0
  }
  return age
}
